/**
  ******************************************************************************
  * @file    bsp_uart.h
  * @author  
  * @brief   
  ******************************************************************************
  * @attention
  *
  * 
  * 
  *
  * 
  * 
  * 
  *                       
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __BSP_UART_H
#define __BSP_UART_H

#ifdef __cplusplus
extern "C" {
#endif  /* #ifdef __cplusplus */

/* Includes ------------------------------------------------------------------*/
#include "MS51_16K.H"

/* Exported macro ------------------------------------------------------------*/
#define RX_BUFFER_NUM 32
#define TX_BUFFER_NUM 32
/* Exported types ------------------------------------------------------------*/
extern data bit g_uart0_receive_dispose_flag;
extern xdata uint8_t g_rx_buffer[RX_BUFFER_NUM];
extern xdata uint8_t g_tx_buffer[TX_BUFFER_NUM];
extern xdata uint8_t g_rx_buffer_cnt;
extern xdata uint8_t g_tx_buffer_cnt;

/* Exported functions ------------------------------------------------------- */
void BSP_UART_Init(void);
void BSP_Uart_Timeout_CallBack(void);
void BSP_Send_Byte(uint8_t temp);
void BSP_Send_Data(void);

#ifdef __cplusplus
}
#endif  /* #ifdef __cplusplus */
#endif /* __BSP_UART_H */

/************************ (C) COPYRIGHT HWADAR *****END OF FILE****/



